/*
 * Filename:    SelfFeedbackDetailDAOImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年11月14日
 */
package com.paic.mhis.hcpms.warning.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.common.document.dto.DocContentDTO;
import com.paic.mhis.hcpms.common.document.dto.DocParameterCondition;
import com.paic.mhis.hcpms.warning.dao.SelfFeedbackDetailDAO;
import com.paic.mhis.hcpms.warning.dto.WarningCheckDTO;
import com.paic.mhis.hcpms.warning.dto.WarningCheckDetailDTO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("selfFeedbackDetail")
public class SelfFeedbackDetailDAOImpl extends BaseDAO implements SelfFeedbackDetailDAO {

	@Override
	public List<WarningCheckDetailDTO> getFeedBackDetailList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return (List<WarningCheckDetailDTO>) this._list("warning.getFeedBackDetail", map);
	}

	@Override
	public List<WarningCheckDTO> getFeedBackList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return (List<WarningCheckDTO>) this._list("warning.getFeedBack", map);
	}

	@Override
	public List<DocContentDTO> queryByDocParameterCondition(DocParameterCondition parameter) {
		// TODO Auto-generated method stub
		return (List<DocContentDTO>) this._queryForList("document.queryDocContentDTO", parameter);
	}

	@Override
	public void saveFeedBackList(WarningCheckDTO warningCheckDTO) {
		this._insert("warning.updateFeedBack", warningCheckDTO);
	}

	@Override
	public void saveFeedBackDetailList(List<WarningCheckDetailDTO> paramterList) {
		this._insert("warning.updateFeedBackDetail", paramterList);
	}

	@Override
	public void updateFeedBackDetailList(Map map) {
		this._update("warning.editFeedBackDetail", map);
	}

}
